<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 1. 函数声明
        async function foo(){}

        // 2. 函数表达式
        const bar = async function(){}

        // 3. 对象的方法
        const obj = {
            name:'jianguo',
            async sayHi(){
                console.log(111)
            }
        }

        // 4. 箭头函数
        const foo = async () => {}
    </script>
</body>
</html>